﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace QuanLyDeTaiKHCN.App_Code
{
    public class MemberShip_ASP
    {
        public static string[] GetRoles(string UserName)
        {
            //_dbDataContext _db = new _dbDataContext();

            //var tablerole = from p in _db.tblUserInRoles
            //                where p.tblAcount.TenDangNhap.ToString().Trim().ToUpper() == UserName.ToUpper()
            //                select new
            //                {
            //                    rolename = p.tblRole.RoleName.ToString().Trim()
            //                };
            //string[] Roles = new string[tablerole.ToList().Count];
            //int i = 0;
            //foreach (var role in tablerole)
            //{
            //    Roles[i] = role.rolename.ToString().Trim();
            //    i++;
            //}
            //return Roles;
            string[] a={"sdf","sdf"};
                return a;
        }
    }
}